package com.alibaba.fastjson.serializer;

import java.io.IOException;
import java.lang.reflect.Type;

/* loaded from: classes.dex */
public class MapSerializer extends SerializeFilterable implements ObjectSerializer {
    public static MapSerializer instance = new MapSerializer();
    private static final int NON_STRINGKEY_AS_STRING = SerializerFeature.of(new SerializerFeature[]{SerializerFeature.BrowserCompatible, SerializerFeature.WriteNonStringKeyAsString, SerializerFeature.BrowserSecure});

    @Override // com.alibaba.fastjson.serializer.ObjectSerializer
    public void write(JSONSerializer jSONSerializer, Object obj, Object obj2, Type type, int i) throws IOException {
        write(jSONSerializer, obj, obj2, type, i, false);
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:160:0x01fd A[Catch: all -> 0x0314, TryCatch #0 {all -> 0x0314, blocks: (B:28:0x0052, B:29:0x0055, B:31:0x0061, B:42:0x0080, B:44:0x0091, B:45:0x00a1, B:47:0x00a7, B:49:0x00b9, B:52:0x00c1, B:55:0x00c6, B:57:0x00d0, B:59:0x00d4, B:62:0x00df, B:65:0x00ed, B:67:0x00f1, B:70:0x00f9, B:73:0x00fe, B:75:0x0108, B:77:0x010c, B:80:0x0117, B:83:0x0121, B:85:0x0125, B:88:0x012d, B:91:0x0132, B:93:0x013c, B:95:0x0140, B:98:0x014b, B:101:0x0155, B:103:0x0159, B:106:0x0161, B:109:0x0166, B:111:0x0170, B:113:0x0174, B:116:0x0180, B:119:0x018b, B:121:0x018f, B:124:0x0197, B:127:0x019c, B:129:0x01a6, B:131:0x01aa, B:132:0x01b3, B:133:0x01b9, B:135:0x01bd, B:138:0x01c5, B:141:0x01ca, B:143:0x01d4, B:145:0x01d8, B:146:0x01e1, B:149:0x01ea, B:152:0x01ef, B:154:0x01f3, B:160:0x01fd, B:165:0x023d, B:168:0x024f, B:170:0x0255, B:172:0x025a, B:173:0x025d, B:175:0x0265, B:176:0x0268, B:189:0x0297, B:191:0x02a4, B:193:0x02ac, B:195:0x02b8, B:197:0x02c0, B:199:0x02c4, B:201:0x02c8, B:203:0x02d3, B:205:0x02d9, B:206:0x02e5, B:178:0x026e, B:179:0x0271, B:181:0x0279, B:186:0x028d, B:187:0x0290, B:183:0x0281, B:185:0x0285, B:162:0x0222, B:37:0x0075), top: B:221:0x0052 }] */
    /* JADX WARN: Removed duplicated region for block: B:161:0x0219  */
    /* JADX WARN: Removed duplicated region for block: B:165:0x023d A[Catch: all -> 0x0314, TryCatch #0 {all -> 0x0314, blocks: (B:28:0x0052, B:29:0x0055, B:31:0x0061, B:42:0x0080, B:44:0x0091, B:45:0x00a1, B:47:0x00a7, B:49:0x00b9, B:52:0x00c1, B:55:0x00c6, B:57:0x00d0, B:59:0x00d4, B:62:0x00df, B:65:0x00ed, B:67:0x00f1, B:70:0x00f9, B:73:0x00fe, B:75:0x0108, B:77:0x010c, B:80:0x0117, B:83:0x0121, B:85:0x0125, B:88:0x012d, B:91:0x0132, B:93:0x013c, B:95:0x0140, B:98:0x014b, B:101:0x0155, B:103:0x0159, B:106:0x0161, B:109:0x0166, B:111:0x0170, B:113:0x0174, B:116:0x0180, B:119:0x018b, B:121:0x018f, B:124:0x0197, B:127:0x019c, B:129:0x01a6, B:131:0x01aa, B:132:0x01b3, B:133:0x01b9, B:135:0x01bd, B:138:0x01c5, B:141:0x01ca, B:143:0x01d4, B:145:0x01d8, B:146:0x01e1, B:149:0x01ea, B:152:0x01ef, B:154:0x01f3, B:160:0x01fd, B:165:0x023d, B:168:0x024f, B:170:0x0255, B:172:0x025a, B:173:0x025d, B:175:0x0265, B:176:0x0268, B:189:0x0297, B:191:0x02a4, B:193:0x02ac, B:195:0x02b8, B:197:0x02c0, B:199:0x02c4, B:201:0x02c8, B:203:0x02d3, B:205:0x02d9, B:206:0x02e5, B:178:0x026e, B:179:0x0271, B:181:0x0279, B:186:0x028d, B:187:0x0290, B:183:0x0281, B:185:0x0285, B:162:0x0222, B:37:0x0075), top: B:221:0x0052 }] */
    /* JADX WARN: Removed duplicated region for block: B:170:0x0255 A[Catch: all -> 0x0314, TryCatch #0 {all -> 0x0314, blocks: (B:28:0x0052, B:29:0x0055, B:31:0x0061, B:42:0x0080, B:44:0x0091, B:45:0x00a1, B:47:0x00a7, B:49:0x00b9, B:52:0x00c1, B:55:0x00c6, B:57:0x00d0, B:59:0x00d4, B:62:0x00df, B:65:0x00ed, B:67:0x00f1, B:70:0x00f9, B:73:0x00fe, B:75:0x0108, B:77:0x010c, B:80:0x0117, B:83:0x0121, B:85:0x0125, B:88:0x012d, B:91:0x0132, B:93:0x013c, B:95:0x0140, B:98:0x014b, B:101:0x0155, B:103:0x0159, B:106:0x0161, B:109:0x0166, B:111:0x0170, B:113:0x0174, B:116:0x0180, B:119:0x018b, B:121:0x018f, B:124:0x0197, B:127:0x019c, B:129:0x01a6, B:131:0x01aa, B:132:0x01b3, B:133:0x01b9, B:135:0x01bd, B:138:0x01c5, B:141:0x01ca, B:143:0x01d4, B:145:0x01d8, B:146:0x01e1, B:149:0x01ea, B:152:0x01ef, B:154:0x01f3, B:160:0x01fd, B:165:0x023d, B:168:0x024f, B:170:0x0255, B:172:0x025a, B:173:0x025d, B:175:0x0265, B:176:0x0268, B:189:0x0297, B:191:0x02a4, B:193:0x02ac, B:195:0x02b8, B:197:0x02c0, B:199:0x02c4, B:201:0x02c8, B:203:0x02d3, B:205:0x02d9, B:206:0x02e5, B:178:0x026e, B:179:0x0271, B:181:0x0279, B:186:0x028d, B:187:0x0290, B:183:0x0281, B:185:0x0285, B:162:0x0222, B:37:0x0075), top: B:221:0x0052 }] */
    /* JADX WARN: Removed duplicated region for block: B:177:0x026c  */
    /* JADX WARN: Removed duplicated region for block: B:189:0x0297 A[Catch: all -> 0x0314, TryCatch #0 {all -> 0x0314, blocks: (B:28:0x0052, B:29:0x0055, B:31:0x0061, B:42:0x0080, B:44:0x0091, B:45:0x00a1, B:47:0x00a7, B:49:0x00b9, B:52:0x00c1, B:55:0x00c6, B:57:0x00d0, B:59:0x00d4, B:62:0x00df, B:65:0x00ed, B:67:0x00f1, B:70:0x00f9, B:73:0x00fe, B:75:0x0108, B:77:0x010c, B:80:0x0117, B:83:0x0121, B:85:0x0125, B:88:0x012d, B:91:0x0132, B:93:0x013c, B:95:0x0140, B:98:0x014b, B:101:0x0155, B:103:0x0159, B:106:0x0161, B:109:0x0166, B:111:0x0170, B:113:0x0174, B:116:0x0180, B:119:0x018b, B:121:0x018f, B:124:0x0197, B:127:0x019c, B:129:0x01a6, B:131:0x01aa, B:132:0x01b3, B:133:0x01b9, B:135:0x01bd, B:138:0x01c5, B:141:0x01ca, B:143:0x01d4, B:145:0x01d8, B:146:0x01e1, B:149:0x01ea, B:152:0x01ef, B:154:0x01f3, B:160:0x01fd, B:165:0x023d, B:168:0x024f, B:170:0x0255, B:172:0x025a, B:173:0x025d, B:175:0x0265, B:176:0x0268, B:189:0x0297, B:191:0x02a4, B:193:0x02ac, B:195:0x02b8, B:197:0x02c0, B:199:0x02c4, B:201:0x02c8, B:203:0x02d3, B:205:0x02d9, B:206:0x02e5, B:178:0x026e, B:179:0x0271, B:181:0x0279, B:186:0x028d, B:187:0x0290, B:183:0x0281, B:185:0x0285, B:162:0x0222, B:37:0x0075), top: B:221:0x0052 }] */
    /* JADX WARN: Removed duplicated region for block: B:191:0x02a4 A[Catch: all -> 0x0314, TryCatch #0 {all -> 0x0314, blocks: (B:28:0x0052, B:29:0x0055, B:31:0x0061, B:42:0x0080, B:44:0x0091, B:45:0x00a1, B:47:0x00a7, B:49:0x00b9, B:52:0x00c1, B:55:0x00c6, B:57:0x00d0, B:59:0x00d4, B:62:0x00df, B:65:0x00ed, B:67:0x00f1, B:70:0x00f9, B:73:0x00fe, B:75:0x0108, B:77:0x010c, B:80:0x0117, B:83:0x0121, B:85:0x0125, B:88:0x012d, B:91:0x0132, B:93:0x013c, B:95:0x0140, B:98:0x014b, B:101:0x0155, B:103:0x0159, B:106:0x0161, B:109:0x0166, B:111:0x0170, B:113:0x0174, B:116:0x0180, B:119:0x018b, B:121:0x018f, B:124:0x0197, B:127:0x019c, B:129:0x01a6, B:131:0x01aa, B:132:0x01b3, B:133:0x01b9, B:135:0x01bd, B:138:0x01c5, B:141:0x01ca, B:143:0x01d4, B:145:0x01d8, B:146:0x01e1, B:149:0x01ea, B:152:0x01ef, B:154:0x01f3, B:160:0x01fd, B:165:0x023d, B:168:0x024f, B:170:0x0255, B:172:0x025a, B:173:0x025d, B:175:0x0265, B:176:0x0268, B:189:0x0297, B:191:0x02a4, B:193:0x02ac, B:195:0x02b8, B:197:0x02c0, B:199:0x02c4, B:201:0x02c8, B:203:0x02d3, B:205:0x02d9, B:206:0x02e5, B:178:0x026e, B:179:0x0271, B:181:0x0279, B:186:0x028d, B:187:0x0290, B:183:0x0281, B:185:0x0285, B:162:0x0222, B:37:0x0075), top: B:221:0x0052 }] */
    /* JADX WARN: Removed duplicated region for block: B:214:0x030e  */
    /* JADX WARN: Removed duplicated region for block: B:225:0x024f A[ADDED_TO_REGION, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:23:0x0042  */
    /* JADX WARN: Removed duplicated region for block: B:240:? A[RETURN, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:25:0x0046  */
    /* JADX WARN: Removed duplicated region for block: B:47:0x00a7 A[Catch: all -> 0x0314, TryCatch #0 {all -> 0x0314, blocks: (B:28:0x0052, B:29:0x0055, B:31:0x0061, B:42:0x0080, B:44:0x0091, B:45:0x00a1, B:47:0x00a7, B:49:0x00b9, B:52:0x00c1, B:55:0x00c6, B:57:0x00d0, B:59:0x00d4, B:62:0x00df, B:65:0x00ed, B:67:0x00f1, B:70:0x00f9, B:73:0x00fe, B:75:0x0108, B:77:0x010c, B:80:0x0117, B:83:0x0121, B:85:0x0125, B:88:0x012d, B:91:0x0132, B:93:0x013c, B:95:0x0140, B:98:0x014b, B:101:0x0155, B:103:0x0159, B:106:0x0161, B:109:0x0166, B:111:0x0170, B:113:0x0174, B:116:0x0180, B:119:0x018b, B:121:0x018f, B:124:0x0197, B:127:0x019c, B:129:0x01a6, B:131:0x01aa, B:132:0x01b3, B:133:0x01b9, B:135:0x01bd, B:138:0x01c5, B:141:0x01ca, B:143:0x01d4, B:145:0x01d8, B:146:0x01e1, B:149:0x01ea, B:152:0x01ef, B:154:0x01f3, B:160:0x01fd, B:165:0x023d, B:168:0x024f, B:170:0x0255, B:172:0x025a, B:173:0x025d, B:175:0x0265, B:176:0x0268, B:189:0x0297, B:191:0x02a4, B:193:0x02ac, B:195:0x02b8, B:197:0x02c0, B:199:0x02c4, B:201:0x02c8, B:203:0x02d3, B:205:0x02d9, B:206:0x02e5, B:178:0x026e, B:179:0x0271, B:181:0x0279, B:186:0x028d, B:187:0x0290, B:183:0x0281, B:185:0x0285, B:162:0x0222, B:37:0x0075), top: B:221:0x0052 }] */
    /* JADX WARN: Type inference failed for: r0v12 */
    /* JADX WARN: Type inference failed for: r0v18 */
    /* JADX WARN: Type inference failed for: r0v7, types: [boolean] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct code enable 'Show inconsistent code' option in preferences
    */
    public void write(com.alibaba.fastjson.serializer.JSONSerializer r24, java.lang.Object r25, java.lang.Object r26, java.lang.reflect.Type r27, int r28, boolean r29) throws java.io.IOException {
        /*
            Method dump skipped, instructions count: 794
            To view this dump change 'Code comments level' option to 'DEBUG'
        */
        throw new UnsupportedOperationException("Method not decompiled: com.alibaba.fastjson.serializer.MapSerializer.write(com.alibaba.fastjson.serializer.JSONSerializer, java.lang.Object, java.lang.Object, java.lang.reflect.Type, int, boolean):void");
    }
}
